#ifndef __RESULT_H__
#define __RESULT_H__

#include "SceneController.h"


using namespace cocos2d;
using namespace CocosDenshion;

class GameLayer;

class ResultLayer : public CCLayerColor
{
public:
	bool bEndConnection;
    CCSize winSize;
    CCLayerColor* dimLayer;
    CCLayerColor* popLayer;
    int score;
    CCLabelTTF *lblScore;
	CCLayer* parentLayer;
	int connectionTime;
    
	virtual bool init();
    static CCScene* scene(GameLayer* parentLayer);
    void doQuit();
    void doRestart();
    void registerScoreCallBack(CCNode * sender, void *data);
	void update(float dt);
	void registerScore();
	//static ResultLayer* create(GameLayer* parentLayer);

    CREATE_FUNC(ResultLayer);
};

#endif // __RESULT_H__
